package com.ruoyi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.domain.entity.ProjectAttachment;
import com.ruoyi.project.domain.entity.ProjectPay;
import com.ruoyi.project.domain.query.ProjectFileQuery;
import com.ruoyi.project.domain.query.ProjectPayQuery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectPayMapper extends BaseMapper<ProjectPay> {
    List<ProjectPay> getList(ProjectPayQuery query);

    @Delete("DELETE FROM project_pay  WHERE project_no = #{projectNo}")
    void deleteAllByProjectNo(@Param("projectNo") String projectNo);

}
